package com.lq.schoolshop.service.impl;

import com.lq.schoolshop.dao.LoveWallMapper;
import com.lq.schoolshop.pojo.Expand.LoveWallAndLeaveMessage;
import com.lq.schoolshop.pojo.Expand.LoveWallAndPimageAll;
import com.lq.schoolshop.service.LoveWallService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Author
 * @Date2021/1/8 21:08
 * @Version V1.0
 * 为什么努力？想把钱都赚够，一心跳广场舞曲去。
 **/
@Service
public class LoveWallServiceImpl implements LoveWallService {

    @Autowired(required = false)
    private LoveWallMapper loveWallMapper;

    @Override
    public List<LoveWallAndPimageAll> selListByAll() {
        return loveWallMapper.selListByAll();
    }

    @Override
    public int insertAll(String content, int uid, int puid) {
        return loveWallMapper.insertAll(content,uid,puid);
    }

    @Override
    public List<LoveWallAndLeaveMessage> selAllmessageByPid(int puid) {
        return loveWallMapper.selAllmessageByPid(puid);
    }

}
